package thread;

/**
 * Created with IDEA
 * author:ju bai
 * Date:2021/4/25
 * Time:21:26
 **/
public class ThreadDemo3 {
    /**
     * 实现一个台词打印
     * @param args
     */
    public static void main(String[] args) throws InterruptedException {
        String content = "世界上总有一半人不理解另一半人的快乐。---《爱玛》";
        for (char item:content.toCharArray()){
            System.out.print(item);
            //执行到这休眠300ms
            Thread.sleep(300);
        }
    }
}
